import request from '@/utiles/request'

// 登录接口
export const loginApi = (data) => {
  return request({
    method: 'POST',
    url: '/login',
    data
  })
}
// 验证码
export function getCaptchaAPI (hash) {
  return request({
    method: 'GET',
    url: `/captcha?key=${hash}`,
    responseType: 'blob'
  })
}

export function getMenusAPI () {
  return request({
    method: 'GET',
    url: '/menus'
  })
}
